import Vue from "vue";
import Vuex from "vuex";
import pkg from "package";
import * as actions from "./actions";
import * as getters from "./getters";
import app from "./modules/app";
import menu from "./modules/menu";
import entry from "./modules/entry";
Vue.use(Vuex);

const store = new Vuex.Store({
  // 根据是否是生产环境使用
  strict: process.env.NODE_ENV !== "production",
  actions,
  getters,
  modules: {
    app,
    menu,
    entry
  },
  state: {
    pkg
  },
  mutations: {}
});

export default store;
